class OrderListModel {
  OrderListModel({
      this.orderId,
      this.orderDoc, 
      this.orderTime, 
      this.totalPrice, 
      this.payWay, 
      this.itemList,});

  OrderListModel.fromJson(dynamic json) {
    orderId = json['orderId'];
    orderDoc = json['orderDoc'];
    orderTime = json['orderTime'];
    totalPrice = json['totalPrice'];
    payWay = json['payWay'];
    if (json['itemList'] != null) {
      itemList = [];
      json['itemList'].forEach((v) {
        itemList?.add(OrderItemList.fromJson(v));
      });
    }
  }
  int? orderId;
  String? orderDoc;
  String? orderTime;
  num? totalPrice;
  String? payWay;
  List<OrderItemList>? itemList;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['orderId'] = orderId;
    map['orderDoc'] = orderDoc;
    map['orderTime'] = orderTime;
    map['totalPrice'] = totalPrice;
    map['payWay'] = payWay;
    if (itemList != null) {
      map['itemList'] = itemList?.map((v) => v.toJson()).toList();
    }
    return map;
  }

}

class OrderItemList {
  OrderItemList({
      this.id, 
      this.orderGoodsName, 
      this.orderGoodsCode, 
      this.orderGoodsPrice, 
      this.orderGoodsQty, 
      this.orderId,});

  OrderItemList.fromJson(dynamic json) {
    id = json['id'];
    orderGoodsName = json['orderGoodsName'];
    orderGoodsCode = json['orderGoodsCode'];
    orderGoodsPrice = json['orderGoodsPrice'];
    orderGoodsQty = json['orderGoodsQty'];
    orderId = json['orderId'];
  }
  int? id;
  String? orderGoodsName;
  String? orderGoodsCode;
  num? orderGoodsPrice;
  num? orderGoodsQty;
  int? orderId;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = id;
    map['orderGoodsName'] = orderGoodsName;
    map['orderGoodsCode'] = orderGoodsCode;
    map['orderGoodsPrice'] = orderGoodsPrice;
    map['orderGoodsQty'] = orderGoodsQty;
    map['orderId'] = orderId;
    return map;
  }

}